import request from "@/utils/request";

export const register = (data) => {
    return request.post('/client/register',data);
}

export const login = (data) => {
    return request.post('/client/login',data)
}

export const addProject = (data) => {
    return request.post('/project/add',data)
}

export const getProductItem = (params) => {
    return request.get('/product/item',params)
} 

export const addProduct = (data) => {
    return request.post('/product/add',data)
}

export const addProductProfile = (data) => {
    return request.post('/product/profile-addmodbus',data)
}

export const getProductProfile = (params) => {
    return request.get('/product/profile-get',params)
}

export const delProductProfile = (params) => {
    return request.get('/product/profile-del',params)
}